home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / printtools / therasterbatorv12 / source / MainForm.cs < prev    next >
Encoding:
Text File  |  2010-01-01  |  93.7 KB  |  1,853 lines

  1.  
  2. // The Rasterbator Standalone Version 1.0
  3. // Copyright (C) 2004-2005 Matias ─rje
  4. // 
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9. // 
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14. // 
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. using System;
  20. using System.Xml;
  21. using System.IO;
  22. using System.Drawing;
  23. using System.Drawing.Drawing2D;
  24. using System.Windows.Forms;
  25. using System.Threading;
  26. using System.Reflection;
  27. using System.Collections;
  28. using System.Collections.Specialized;
  29.  
  30. namespace Rasterbator
  31. {
  32.     /// <summary>
  33.     /// Description of MainForm.
  34.     /// </summary>
  35.     public class MainForm : System.Windows.Forms.Form {
  36.     private System.ComponentModel.IContainer components;
  37.     private System.Windows.Forms.LinkLabel TranslatorUrl;
  38.     private System.Windows.Forms.LinkLabel TranslatorUrl2;
  39.     private System.Windows.Forms.ComboBox MeasureDimensionCombo;
  40.     private System.Windows.Forms.Button CloseApplicationButton;
  41.     private System.Windows.Forms.Label label10;
  42.     private System.Windows.Forms.CheckBox OpenFileCheckbox;
  43.     private System.Windows.Forms.Panel Panel2_SourceImage;
  44.     private System.Windows.Forms.ListBox LanguageListBox;
  45.     private System.Windows.Forms.RadioButton MultiColorRadio;
  46.     private System.Windows.Forms.Panel Panel8_Rasterbating;
  47.     private System.Windows.Forms.NumericUpDown numericUpDown2;
  48.     private System.Windows.Forms.NumericUpDown numericUpDown5;
  49.     private System.Windows.Forms.NumericUpDown numericUpDown4;
  50.     private System.Windows.Forms.Panel Panel4_OutputSize;
  51.     private System.Windows.Forms.Label SaveAsLabel;
  52.     private System.Windows.Forms.RadioButton BlackRadio;
  53.     private System.Windows.Forms.Panel CustomColorDisplay;
  54.     private System.Windows.Forms.Label OutputSizeLabel;
  55.     private System.Windows.Forms.Label PrintInfoLabel;
  56.     private System.Windows.Forms.Label HeightLabel;
  57.     private System.Windows.Forms.PictureBox PortraitSymbol;
  58.     private System.Windows.Forms.CheckBox LowPriorityRasterbation;
  59.     private System.Windows.Forms.Panel Panel9_Completed;
  60.     private System.Windows.Forms.CheckBox CutoutCheckbox;
  61.     private System.Windows.Forms.Button BackButton1;
  62.     private System.Windows.Forms.Button BackButton2;
  63.     private System.Windows.Forms.Button BackButton3;
  64.     private System.Windows.Forms.Button BackButton4;
  65.     private System.Windows.Forms.Button BackButton5;
  66.     private System.Windows.Forms.Timer timer1;
  67.     private System.Windows.Forms.Panel Panel1_Welcome;
  68.     private System.Windows.Forms.Label SelectSourceImageLabel;
  69.     private System.Windows.Forms.Label label7;
  70.     private System.Windows.Forms.Label label11;
  71.     private System.Windows.Forms.Label label8;
  72.     private System.Windows.Forms.Button ContinueButton2;
  73.     private System.Windows.Forms.Button ContinueButton3;
  74.     private System.Windows.Forms.Button ContinueButton1;
  75.     private System.Windows.Forms.Button ContinueButton4;
  76.     private System.Windows.Forms.Button ContinueButton5;
  77.     private System.Windows.Forms.Label label25;
  78.     private System.Windows.Forms.Button RasterbateButton;
  79.     private System.Windows.Forms.Label SetOptionsLabel;
  80.     private System.Windows.Forms.Panel TitleBg;
  81.     private System.Windows.Forms.Label ColorModeLabel;
  82.     private System.Windows.Forms.Label DotSizeLabel;
  83.     private System.Windows.Forms.Label GalleryPlugLabel;
  84.     private System.Windows.Forms.PictureBox pictureBox1;
  85.     private System.Windows.Forms.PictureBox pictureBox2;
  86.     private System.Windows.Forms.Label CutoutInfoLabel;
  87.     private System.Windows.Forms.Label SelectLanguageLabel;
  88.     private System.Windows.Forms.ColorDialog colorDialog1;
  89.     private System.Windows.Forms.ProgressBar progressBar1;
  90.     private System.Windows.Forms.ComboBox PaperAlignCombo;
  91.     private System.Windows.Forms.Label PaperSizeLabel;
  92.     private System.Windows.Forms.SaveFileDialog SelectRasterbationTargetDialog;
  93.     private System.Windows.Forms.Label WidthLabel;
  94.     private System.Windows.Forms.RadioButton CustomColorRadio;
  95.     private System.Windows.Forms.Label TranslatorInfo;
  96.     private System.Windows.Forms.OpenFileDialog SelectRasterbationSourceDialog;
  97.     private System.Windows.Forms.Label RasterbateBackgroundInfoLabel;
  98.     private System.Windows.Forms.Button BrowseButton1;
  99.     private System.Windows.Forms.Button BrowseButton2;
  100.     private System.Windows.Forms.NumericUpDown numericUpDown1;
  101.     private System.Windows.Forms.LinkLabel linkLabel3;
  102.     private System.Windows.Forms.ComboBox PaperSizeCombo;
  103.     private System.Windows.Forms.Label CompletedLabel;
  104.     private System.Windows.Forms.Button SelectButton;
  105.     private System.Windows.Forms.Label SheetsLabel;
  106.     private System.Windows.Forms.Label PleaseWaitLabel;
  107.     private System.Windows.Forms.LinkLabel linkLabel2;
  108.     private System.Windows.Forms.LinkLabel linkLabel1;
  109.     private System.Windows.Forms.PictureBox LandscapeSymbol;
  110.     private System.Windows.Forms.Label DotSizeInfoLabel;
  111.     private System.Windows.Forms.Panel Panel3_PaperSize;
  112.     private System.Windows.Forms.Panel Panel5_Options;
  113.     private System.Windows.Forms.Label EstimatedTimeRemainingLabel;
  114.     private System.Windows.Forms.TextBox textBox1;
  115.     private System.Windows.Forms.TextBox textBox2;
  116.     private System.Windows.Forms.Label WelcomeTitle;
  117.     private System.Windows.Forms.RadioButton CustomPaperRadio;
  118.     private System.Windows.Forms.Label WelcomeInfo;
  119.     private System.Windows.Forms.Panel Panel7_OutputFilename;
  120.     private System.Windows.Forms.RadioButton StandardPaperRadio;
  121.       
  122.         public MainForm()
  123.         {
  124.             //
  125.             // The InitializeComponent() call is required for Windows Forms designer support.
  126.             //
  127.             InitializeComponent();
  128.             
  129.             //
  130.             // TODO: Add constructor code after the InitializeComponent() call.
  131.             //
  132.         }
  133.         
  134.         [STAThread]
  135.         public static void Main(string[] args)
  136.         {
  137.             Application.Run(new MainForm());
  138.         }
  139.         
  140.         #region Windows Forms Designer generated code
  141.         /// <summary>
  142.         /// This method is required for Windows Forms designer support.
  143.         /// Do not change the method contents inside the source code editor. The Forms designer might
  144.         /// not be able to load this method if it was changed manually.
  145.         /// </summary>
  146.         private void InitializeComponent() {
  147.       this.components = new System.ComponentModel.Container();
  148.       System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
  149.       this.StandardPaperRadio = new System.Windows.Forms.RadioButton();
  150.       this.Panel7_OutputFilename = new System.Windows.Forms.Panel();
  151.       this.WelcomeInfo = new System.Windows.Forms.Label();
  152.       this.CustomPaperRadio = new System.Windows.Forms.RadioButton();
  153.       this.WelcomeTitle = new System.Windows.Forms.Label();
  154.       this.textBox2 = new System.Windows.Forms.TextBox();
  155.       this.textBox1 = new System.Windows.Forms.TextBox();
  156.       this.EstimatedTimeRemainingLabel = new System.Windows.Forms.Label();
  157.       this.Panel5_Options = new System.Windows.Forms.Panel();
  158.       this.Panel3_PaperSize = new System.Windows.Forms.Panel();
  159.       this.DotSizeInfoLabel = new System.Windows.Forms.Label();
  160.       this.LandscapeSymbol = new System.Windows.Forms.PictureBox();
  161.       this.linkLabel1 = new System.Windows.Forms.LinkLabel();
  162.       this.linkLabel2 = new System.Windows.Forms.LinkLabel();
  163.       this.PleaseWaitLabel = new System.Windows.Forms.Label();
  164.       this.SheetsLabel = new System.Windows.Forms.Label();
  165.       this.SelectButton = new System.Windows.Forms.Button();
  166.       this.CompletedLabel = new System.Windows.Forms.Label();
  167.       this.PaperSizeCombo = new System.Windows.Forms.ComboBox();
  168.       this.linkLabel3 = new System.Windows.Forms.LinkLabel();
  169.       this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
  170.       this.BrowseButton2 = new System.Windows.Forms.Button();
  171.       this.BrowseButton1 = new System.Windows.Forms.Button();
  172.       this.RasterbateBackgroundInfoLabel = new System.Windows.Forms.Label();
  173.       this.SelectRasterbationSourceDialog = new System.Windows.Forms.OpenFileDialog();
  174.       this.TranslatorInfo = new System.Windows.Forms.Label();
  175.       this.CustomColorRadio = new System.Windows.Forms.RadioButton();
  176.       this.WidthLabel = new System.Windows.Forms.Label();
  177.       this.SelectRasterbationTargetDialog = new System.Windows.Forms.SaveFileDialog();
  178.       this.PaperSizeLabel = new System.Windows.Forms.Label();
  179.       this.PaperAlignCombo = new System.Windows.Forms.ComboBox();
  180.       this.progressBar1 = new System.Windows.Forms.ProgressBar();
  181.       this.colorDialog1 = new System.Windows.Forms.ColorDialog();
  182.       this.SelectLanguageLabel = new System.Windows.Forms.Label();
  183.       this.CutoutInfoLabel = new System.Windows.Forms.Label();
  184.       this.pictureBox2 = new System.Windows.Forms.PictureBox();
  185.       this.pictureBox1 = new System.Windows.Forms.PictureBox();
  186.       this.GalleryPlugLabel = new System.Windows.Forms.Label();
  187.       this.DotSizeLabel = new System.Windows.Forms.Label();
  188.       this.ColorModeLabel = new System.Windows.Forms.Label();
  189.       this.TitleBg = new System.Windows.Forms.Panel();
  190.       this.SetOptionsLabel = new System.Windows.Forms.Label();
  191.       this.RasterbateButton = new System.Windows.Forms.Button();
  192.       this.label25 = new System.Windows.Forms.Label();
  193.       this.ContinueButton5 = new System.Windows.Forms.Button();
  194.       this.ContinueButton4 = new System.Windows.Forms.Button();
  195.       this.ContinueButton1 = new System.Windows.Forms.Button();
  196.       this.ContinueButton3 = new System.Windows.Forms.Button();
  197.       this.ContinueButton2 = new System.Windows.Forms.Button();
  198.       this.label8 = new System.Windows.Forms.Label();
  199.       this.label11 = new System.Windows.Forms.Label();
  200.       this.label7 = new System.Windows.Forms.Label();
  201.       this.SelectSourceImageLabel = new System.Windows.Forms.Label();
  202.       this.Panel1_Welcome = new System.Windows.Forms.Panel();
  203.       this.timer1 = new System.Windows.Forms.Timer(this.components);
  204.       this.BackButton5 = new System.Windows.Forms.Button();
  205.       this.BackButton4 = new System.Windows.Forms.Button();
  206.       this.BackButton3 = new System.Windows.Forms.Button();
  207.       this.BackButton2 = new System.Windows.Forms.Button();
  208.       this.BackButton1 = new System.Windows.Forms.Button();
  209.       this.CutoutCheckbox = new System.Windows.Forms.CheckBox();
  210.       this.Panel9_Completed = new System.Windows.Forms.Panel();
  211.       this.LowPriorityRasterbation = new System.Windows.Forms.CheckBox();
  212.       this.PortraitSymbol = new System.Windows.Forms.PictureBox();
  213.       this.HeightLabel = new System.Windows.Forms.Label();
  214.       this.PrintInfoLabel = new System.Windows.Forms.Label();
  215.       this.OutputSizeLabel = new System.Windows.Forms.Label();
  216.       this.CustomColorDisplay = new System.Windows.Forms.Panel();
  217.       this.BlackRadio = new System.Windows.Forms.RadioButton();
  218.       this.SaveAsLabel = new System.Windows.Forms.Label();
  219.       this.Panel4_OutputSize = new System.Windows.Forms.Panel();
  220.       this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
  221.       this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
  222.       this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
  223.       this.Panel8_Rasterbating = new System.Windows.Forms.Panel();
  224.       this.MultiColorRadio = new System.Windows.Forms.RadioButton();
  225.       this.LanguageListBox = new System.Windows.Forms.ListBox();
  226.       this.Panel2_SourceImage = new System.Windows.Forms.Panel();
  227.       this.OpenFileCheckbox = new System.Windows.Forms.CheckBox();
  228.       this.label10 = new System.Windows.Forms.Label();
  229.       this.CloseApplicationButton = new System.Windows.Forms.Button();
  230.       this.MeasureDimensionCombo = new System.Windows.Forms.ComboBox();
  231.       this.TranslatorUrl2 = new System.Windows.Forms.LinkLabel();
  232.       this.TranslatorUrl = new System.Windows.Forms.LinkLabel();
  233.       this.Panel7_OutputFilename.SuspendLayout();
  234.       this.Panel5_Options.SuspendLayout();
  235.       this.Panel3_PaperSize.SuspendLayout();
  236.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
  237.       this.Panel1_Welcome.SuspendLayout();
  238.       this.Panel9_Completed.SuspendLayout();
  239.       this.Panel4_OutputSize.SuspendLayout();
  240.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
  241.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
  242.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
  243.       this.Panel8_Rasterbating.SuspendLayout();
  244.       this.Panel2_SourceImage.SuspendLayout();
  245.       this.SuspendLayout();
  246.       // 
  247.       // StandardPaperRadio
  248.       // 
  249.       this.StandardPaperRadio.Checked = true;
  250.       this.StandardPaperRadio.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  251.       this.StandardPaperRadio.Location = new System.Drawing.Point(88, 112);
  252.       this.StandardPaperRadio.Name = "StandardPaperRadio";
  253.       this.StandardPaperRadio.Size = new System.Drawing.Size(480, 24);
  254.       this.StandardPaperRadio.TabIndex = 11;
  255.       this.StandardPaperRadio.TabStop = true;
  256.       this.StandardPaperRadio.Text = "Use standard paper size";
  257.       this.StandardPaperRadio.CheckedChanged += new System.EventHandler(this.RadioButton2CheckedChanged);
  258.       // 
  259.       // Panel7_OutputFilename
  260.       // 
  261.       this.Panel7_OutputFilename.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  262.             | System.Windows.Forms.AnchorStyles.Left) 
  263.             | System.Windows.Forms.AnchorStyles.Right)));
  264.       this.Panel7_OutputFilename.Controls.Add(this.BackButton5);
  265.       this.Panel7_OutputFilename.Controls.Add(this.BrowseButton2);
  266.       this.Panel7_OutputFilename.Controls.Add(this.textBox2);
  267.       this.Panel7_OutputFilename.Controls.Add(this.SaveAsLabel);
  268.       this.Panel7_OutputFilename.Controls.Add(this.RasterbateButton);
  269.       this.Panel7_OutputFilename.Location = new System.Drawing.Point(0, 128);
  270.       this.Panel7_OutputFilename.Name = "Panel7_OutputFilename";
  271.       this.Panel7_OutputFilename.Size = new System.Drawing.Size(696, 392);
  272.       this.Panel7_OutputFilename.TabIndex = 13;
  273.       this.Panel7_OutputFilename.Visible = false;
  274.       // 
  275.       // WelcomeInfo
  276.       // 
  277.       this.WelcomeInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  278.             | System.Windows.Forms.AnchorStyles.Left) 
  279.             | System.Windows.Forms.AnchorStyles.Right)));
  280.       this.WelcomeInfo.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  281.       this.WelcomeInfo.ForeColor = System.Drawing.SystemColors.ControlText;
  282.       this.WelcomeInfo.Location = new System.Drawing.Point(80, 112);
  283.       this.WelcomeInfo.Name = "WelcomeInfo";
  284.       this.WelcomeInfo.Size = new System.Drawing.Size(344, 184);
  285.       this.WelcomeInfo.TabIndex = 5;
  286.       this.WelcomeInfo.Text = "The Rasterbator creates huge, rasterized, multi-page images from any picture. The" +
  287. " rasterized images can be printed and assembled into extremely cool looking post" +
  288. "ers.";
  289.       // 
  290.       // CustomPaperRadio
  291.       // 
  292.       this.CustomPaperRadio.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  293.       this.CustomPaperRadio.Location = new System.Drawing.Point(88, 200);
  294.       this.CustomPaperRadio.Name = "CustomPaperRadio";
  295.       this.CustomPaperRadio.Size = new System.Drawing.Size(488, 24);
  296.       this.CustomPaperRadio.TabIndex = 12;
  297.       this.CustomPaperRadio.Text = "Use custom paper size";
  298.       this.CustomPaperRadio.CheckedChanged += new System.EventHandler(this.RadioButton2CheckedChanged);
  299.       // 
  300.       // WelcomeTitle
  301.       // 
  302.       this.WelcomeTitle.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  303.       this.WelcomeTitle.ForeColor = System.Drawing.SystemColors.ControlText;
  304.       this.WelcomeTitle.Location = new System.Drawing.Point(80, 56);
  305.       this.WelcomeTitle.Name = "WelcomeTitle";
  306.       this.WelcomeTitle.Size = new System.Drawing.Size(344, 48);
  307.       this.WelcomeTitle.TabIndex = 4;
  308.       this.WelcomeTitle.Text = "Welcome to The Rasterbator!";
  309.       // 
  310.       // textBox2
  311.       // 
  312.       this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  313.             | System.Windows.Forms.AnchorStyles.Right)));
  314.       this.textBox2.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  315.       this.textBox2.Location = new System.Drawing.Point(80, 88);
  316.       this.textBox2.Name = "textBox2";
  317.       this.textBox2.Size = new System.Drawing.Size(528, 27);
  318.       this.textBox2.TabIndex = 9;
  319.       this.textBox2.Text = "";
  320.       // 
  321.       // textBox1
  322.       // 
  323.       this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  324.             | System.Windows.Forms.AnchorStyles.Right)));
  325.       this.textBox1.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  326.       this.textBox1.Location = new System.Drawing.Point(80, 88);
  327.       this.textBox1.Name = "textBox1";
  328.       this.textBox1.Size = new System.Drawing.Size(528, 27);
  329.       this.textBox1.TabIndex = 9;
  330.       this.textBox1.Text = "";
  331.       this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
  332.       // 
  333.       // EstimatedTimeRemainingLabel
  334.       // 
  335.       this.EstimatedTimeRemainingLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  336.       this.EstimatedTimeRemainingLabel.Location = new System.Drawing.Point(144, 176);
  337.       this.EstimatedTimeRemainingLabel.Name = "EstimatedTimeRemainingLabel";
  338.       this.EstimatedTimeRemainingLabel.Size = new System.Drawing.Size(464, 16);
  339.       this.EstimatedTimeRemainingLabel.TabIndex = 21;
  340.       this.EstimatedTimeRemainingLabel.Text = "Estimated time remaining:";
  341.       this.EstimatedTimeRemainingLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
  342.       // 
  343.       // Panel5_Options
  344.       // 
  345.       this.Panel5_Options.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  346.             | System.Windows.Forms.AnchorStyles.Left) 
  347.             | System.Windows.Forms.AnchorStyles.Right)));
  348.       this.Panel5_Options.Controls.Add(this.BackButton4);
  349.       this.Panel5_Options.Controls.Add(this.SelectButton);
  350.       this.Panel5_Options.Controls.Add(this.CustomColorDisplay);
  351.       this.Panel5_Options.Controls.Add(this.MultiColorRadio);
  352.       this.Panel5_Options.Controls.Add(this.CustomColorRadio);
  353.       this.Panel5_Options.Controls.Add(this.BlackRadio);
  354.       this.Panel5_Options.Controls.Add(this.DotSizeInfoLabel);
  355.       this.Panel5_Options.Controls.Add(this.CutoutInfoLabel);
  356.       this.Panel5_Options.Controls.Add(this.CutoutCheckbox);
  357.       this.Panel5_Options.Controls.Add(this.label10);
  358.       this.Panel5_Options.Controls.Add(this.ColorModeLabel);
  359.       this.Panel5_Options.Controls.Add(this.numericUpDown5);
  360.       this.Panel5_Options.Controls.Add(this.DotSizeLabel);
  361.       this.Panel5_Options.Controls.Add(this.SetOptionsLabel);
  362.       this.Panel5_Options.Controls.Add(this.ContinueButton5);
  363.       this.Panel5_Options.Location = new System.Drawing.Point(0, 128);
  364.       this.Panel5_Options.Name = "Panel5_Options";
  365.       this.Panel5_Options.Size = new System.Drawing.Size(696, 392);
  366.       this.Panel5_Options.TabIndex = 12;
  367.       this.Panel5_Options.Visible = false;
  368.       this.Panel5_Options.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel5_OptionsPaint);
  369.       // 
  370.       // Panel3_PaperSize
  371.       // 
  372.       this.Panel3_PaperSize.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  373.             | System.Windows.Forms.AnchorStyles.Left) 
  374.             | System.Windows.Forms.AnchorStyles.Right)));
  375.       this.Panel3_PaperSize.Controls.Add(this.PortraitSymbol);
  376.       this.Panel3_PaperSize.Controls.Add(this.LandscapeSymbol);
  377.       this.Panel3_PaperSize.Controls.Add(this.BackButton2);
  378.       this.Panel3_PaperSize.Controls.Add(this.PaperAlignCombo);
  379.       this.Panel3_PaperSize.Controls.Add(this.PaperSizeCombo);
  380.       this.Panel3_PaperSize.Controls.Add(this.label7);
  381.       this.Panel3_PaperSize.Controls.Add(this.label8);
  382.       this.Panel3_PaperSize.Controls.Add(this.numericUpDown2);
  383.       this.Panel3_PaperSize.Controls.Add(this.HeightLabel);
  384.       this.Panel3_PaperSize.Controls.Add(this.numericUpDown1);
  385.       this.Panel3_PaperSize.Controls.Add(this.WidthLabel);
  386.       this.Panel3_PaperSize.Controls.Add(this.CustomPaperRadio);
  387.       this.Panel3_PaperSize.Controls.Add(this.StandardPaperRadio);
  388.       this.Panel3_PaperSize.Controls.Add(this.PaperSizeLabel);
  389.       this.Panel3_PaperSize.Controls.Add(this.ContinueButton3);
  390.       this.Panel3_PaperSize.Location = new System.Drawing.Point(0, 128);
  391.       this.Panel3_PaperSize.Name = "Panel3_PaperSize";
  392.       this.Panel3_PaperSize.Size = new System.Drawing.Size(696, 392);
  393.       this.Panel3_PaperSize.TabIndex = 10;
  394.       this.Panel3_PaperSize.Visible = false;
  395.       this.Panel3_PaperSize.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel3_PaperSizePaint);
  396.       // 
  397.       // DotSizeInfoLabel
  398.       // 
  399.       this.DotSizeInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  400.             | System.Windows.Forms.AnchorStyles.Right)));
  401.       this.DotSizeInfoLabel.Location = new System.Drawing.Point(104, 176);
  402.       this.DotSizeInfoLabel.Name = "DotSizeInfoLabel";
  403.       this.DotSizeInfoLabel.Size = new System.Drawing.Size(528, 48);
  404.       this.DotSizeInfoLabel.TabIndex = 21;
  405.       this.DotSizeInfoLabel.Text = "Dot size defines the maximum size of the dots of the rasterbation. Typical range " +
  406. "is 5-25 mm, but other sizes can be used too, if you want to play around.";
  407.       // 
  408.       // LandscapeSymbol
  409.       // 
  410.       this.LandscapeSymbol.Image = ((System.Drawing.Image)(resources.GetObject("LandscapeSymbol.Image")));
  411.       this.LandscapeSymbol.Location = new System.Drawing.Point(504, 128);
  412.       this.LandscapeSymbol.Name = "LandscapeSymbol";
  413.       this.LandscapeSymbol.Size = new System.Drawing.Size(42, 42);
  414.       this.LandscapeSymbol.TabIndex = 22;
  415.       this.LandscapeSymbol.TabStop = false;
  416.       // 
  417.       // linkLabel1
  418.       // 
  419.       this.linkLabel1.ActiveLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  420.       this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  421.       this.linkLabel1.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  422.       this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
  423.       this.linkLabel1.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(78)), ((System.Byte)(7)), ((System.Byte)(7)));
  424.       this.linkLabel1.Location = new System.Drawing.Point(80, 344);
  425.       this.linkLabel1.Name = "linkLabel1";
  426.       this.linkLabel1.Size = new System.Drawing.Size(264, 23);
  427.       this.linkLabel1.TabIndex = 7;
  428.       this.linkLabel1.TabStop = true;
  429.       this.linkLabel1.Text = "http://arje.net/rasterbator";
  430.       this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked);
  431.       // 
  432.       // linkLabel2
  433.       // 
  434.       this.linkLabel2.ActiveLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  435.       this.linkLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  436.       this.linkLabel2.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  437.       this.linkLabel2.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
  438.       this.linkLabel2.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(78)), ((System.Byte)(7)), ((System.Byte)(7)));
  439.       this.linkLabel2.Location = new System.Drawing.Point(80, 344);
  440.       this.linkLabel2.Name = "linkLabel2";
  441.       this.linkLabel2.Size = new System.Drawing.Size(344, 23);
  442.       this.linkLabel2.TabIndex = 7;
  443.       this.linkLabel2.TabStop = true;
  444.       this.linkLabel2.Text = "http://homokaasu.org/rasterbator/gallery.gas";
  445.       this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked);
  446.       // 
  447.       // PleaseWaitLabel
  448.       // 
  449.       this.PleaseWaitLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  450.       this.PleaseWaitLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  451.       this.PleaseWaitLabel.Location = new System.Drawing.Point(80, 136);
  452.       this.PleaseWaitLabel.Name = "PleaseWaitLabel";
  453.       this.PleaseWaitLabel.Size = new System.Drawing.Size(520, 24);
  454.       this.PleaseWaitLabel.TabIndex = 4;
  455.       this.PleaseWaitLabel.Text = "Rasterbating, please wait...";
  456.       // 
  457.       // SheetsLabel
  458.       // 
  459.       this.SheetsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  460.       this.SheetsLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  461.       this.SheetsLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  462.       this.SheetsLabel.Location = new System.Drawing.Point(448, 106);
  463.       this.SheetsLabel.Name = "SheetsLabel";
  464.       this.SheetsLabel.Size = new System.Drawing.Size(64, 24);
  465.       this.SheetsLabel.TabIndex = 13;
  466.       this.SheetsLabel.Text = "sheets";
  467.       this.SheetsLabel.Click += new System.EventHandler(this.Label4Click);
  468.       // 
  469.       // SelectButton
  470.       // 
  471.       this.SelectButton.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  472.       this.SelectButton.Location = new System.Drawing.Point(248, 272);
  473.       this.SelectButton.Name = "SelectButton";
  474.       this.SelectButton.Size = new System.Drawing.Size(112, 24);
  475.       this.SelectButton.TabIndex = 26;
  476.       this.SelectButton.Text = "Select...";
  477.       this.SelectButton.Click += new System.EventHandler(this.Button7Click);
  478.       // 
  479.       // CompletedLabel
  480.       // 
  481.       this.CompletedLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  482.       this.CompletedLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  483.       this.CompletedLabel.Location = new System.Drawing.Point(80, 56);
  484.       this.CompletedLabel.Name = "CompletedLabel";
  485.       this.CompletedLabel.Size = new System.Drawing.Size(368, 24);
  486.       this.CompletedLabel.TabIndex = 4;
  487.       this.CompletedLabel.Text = "Rasterbation completed!";
  488.       // 
  489.       // PaperSizeCombo
  490.       // 
  491.       this.PaperSizeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  492.       this.PaperSizeCombo.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  493.       this.PaperSizeCombo.Items.AddRange(new object[] {
  494.             "A4 (210x297 mm)",
  495.             "A3 (297x420 mm)",
  496.             "US Letter (216x279 mm)",
  497.             "US Legal (216x356 mm)"});
  498.       this.PaperSizeCombo.Location = new System.Drawing.Point(128, 136);
  499.       this.PaperSizeCombo.Name = "PaperSizeCombo";
  500.       this.PaperSizeCombo.Size = new System.Drawing.Size(224, 26);
  501.       this.PaperSizeCombo.TabIndex = 19;
  502.       // 
  503.       // linkLabel3
  504.       // 
  505.       this.linkLabel3.ActiveLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  506.       this.linkLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  507.       this.linkLabel3.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  508.       this.linkLabel3.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
  509.       this.linkLabel3.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(78)), ((System.Byte)(7)), ((System.Byte)(7)));
  510.       this.linkLabel3.Location = new System.Drawing.Point(80, 320);
  511.       this.linkLabel3.Name = "linkLabel3";
  512.       this.linkLabel3.Size = new System.Drawing.Size(264, 23);
  513.       this.linkLabel3.TabIndex = 22;
  514.       this.linkLabel3.TabStop = true;
  515.       this.linkLabel3.Text = "http://arje.net/rasterbator";
  516.       this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked);
  517.       // 
  518.       // numericUpDown1
  519.       // 
  520.       this.numericUpDown1.Enabled = false;
  521.       this.numericUpDown1.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  522.       this.numericUpDown1.Location = new System.Drawing.Point(216, 232);
  523.       this.numericUpDown1.Maximum = new System.Decimal(new int[] {
  524.             10000,
  525.             0,
  526.             0,
  527.             0});
  528.       this.numericUpDown1.Minimum = new System.Decimal(new int[] {
  529.             50,
  530.             0,
  531.             0,
  532.             0});
  533.       this.numericUpDown1.Name = "numericUpDown1";
  534.       this.numericUpDown1.Size = new System.Drawing.Size(80, 27);
  535.       this.numericUpDown1.TabIndex = 14;
  536.       this.numericUpDown1.Value = new System.Decimal(new int[] {
  537.             200,
  538.             0,
  539.             0,
  540.             0});
  541.       // 
  542.       // BrowseButton2
  543.       // 
  544.       this.BrowseButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  545.       this.BrowseButton2.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  546.       this.BrowseButton2.Location = new System.Drawing.Point(480, 128);
  547.       this.BrowseButton2.Name = "BrowseButton2";
  548.       this.BrowseButton2.Size = new System.Drawing.Size(128, 28);
  549.       this.BrowseButton2.TabIndex = 10;
  550.       this.BrowseButton2.Text = "Browse...";
  551.       this.BrowseButton2.Click += new System.EventHandler(this.Button8Click);
  552.       // 
  553.       // BrowseButton1
  554.       // 
  555.       this.BrowseButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  556.       this.BrowseButton1.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  557.       this.BrowseButton1.Location = new System.Drawing.Point(480, 128);
  558.       this.BrowseButton1.Name = "BrowseButton1";
  559.       this.BrowseButton1.Size = new System.Drawing.Size(128, 28);
  560.       this.BrowseButton1.TabIndex = 10;
  561.       this.BrowseButton1.Text = "Browse...";
  562.       this.BrowseButton1.Click += new System.EventHandler(this.Button3Click);
  563.       // 
  564.       // RasterbateBackgroundInfoLabel
  565.       // 
  566.       this.RasterbateBackgroundInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
  567.             | System.Windows.Forms.AnchorStyles.Right)));
  568.       this.RasterbateBackgroundInfoLabel.Location = new System.Drawing.Point(96, 344);
  569.       this.RasterbateBackgroundInfoLabel.Name = "RasterbateBackgroundInfoLabel";
  570.       this.RasterbateBackgroundInfoLabel.Size = new System.Drawing.Size(520, 40);
  571.       this.RasterbateBackgroundInfoLabel.TabIndex = 23;
  572.       this.RasterbateBackgroundInfoLabel.Text = "Check this if you want to use other programs while rasterbating. The rasterbation" +
  573. " will take more time, but other programs become more responsive.";
  574.       // 
  575.       // SelectRasterbationSourceDialog
  576.       // 
  577.       this.SelectRasterbationSourceDialog.Filter = "Image files (*.jpg, *.png, *.gif, *.tif, *.bmp)|*.jpg;*.gif;*.png;*.tif;*.tiff;*." +
  578. "jpeg;*.bmp|All files (*.*)|*.*";
  579.       this.SelectRasterbationSourceDialog.Title = "Select Rasterbation source...";
  580.       this.SelectRasterbationSourceDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.OpenFileDialog1FileOk);
  581.       // 
  582.       // TranslatorInfo
  583.       // 
  584.       this.TranslatorInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  585.       this.TranslatorInfo.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  586.       this.TranslatorInfo.ForeColor = System.Drawing.SystemColors.ControlText;
  587.       this.TranslatorInfo.Location = new System.Drawing.Point(448, 232);
  588.       this.TranslatorInfo.Name = "TranslatorInfo";
  589.       this.TranslatorInfo.Size = new System.Drawing.Size(216, 32);
  590.       this.TranslatorInfo.TabIndex = 11;
  591.       this.TranslatorInfo.Text = "Translated by ";
  592.       // 
  593.       // CustomColorRadio
  594.       // 
  595.       this.CustomColorRadio.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  596.       this.CustomColorRadio.Location = new System.Drawing.Point(192, 248);
  597.       this.CustomColorRadio.Name = "CustomColorRadio";
  598.       this.CustomColorRadio.Size = new System.Drawing.Size(304, 24);
  599.       this.CustomColorRadio.TabIndex = 23;
  600.       this.CustomColorRadio.Text = "Custom color:";
  601.       // 
  602.       // WidthLabel
  603.       // 
  604.       this.WidthLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  605.       this.WidthLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  606.       this.WidthLabel.Location = new System.Drawing.Point(136, 232);
  607.       this.WidthLabel.Name = "WidthLabel";
  608.       this.WidthLabel.Size = new System.Drawing.Size(64, 24);
  609.       this.WidthLabel.TabIndex = 13;
  610.       this.WidthLabel.Text = "Width";
  611.       this.WidthLabel.Click += new System.EventHandler(this.Label4Click);
  612.       // 
  613.       // SelectRasterbationTargetDialog
  614.       // 
  615.       this.SelectRasterbationTargetDialog.Filter = "Pdf files (*.pdf)|*.pdf";
  616.       // 
  617.       // PaperSizeLabel
  618.       // 
  619.       this.PaperSizeLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  620.       this.PaperSizeLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  621.       this.PaperSizeLabel.Location = new System.Drawing.Point(80, 56);
  622.       this.PaperSizeLabel.Name = "PaperSizeLabel";
  623.       this.PaperSizeLabel.Size = new System.Drawing.Size(536, 24);
  624.       this.PaperSizeLabel.TabIndex = 8;
  625.       this.PaperSizeLabel.Text = "Select paper size (2/5)";
  626.       this.PaperSizeLabel.Click += new System.EventHandler(this.Label4Click);
  627.       // 
  628.       // PaperAlignCombo
  629.       // 
  630.       this.PaperAlignCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  631.       this.PaperAlignCombo.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  632.       this.PaperAlignCombo.Items.AddRange(new object[] {
  633.             "Portrait",
  634.             "Landscape"});
  635.       this.PaperAlignCombo.Location = new System.Drawing.Point(368, 136);
  636.       this.PaperAlignCombo.Name = "PaperAlignCombo";
  637.       this.PaperAlignCombo.Size = new System.Drawing.Size(120, 26);
  638.       this.PaperAlignCombo.TabIndex = 20;
  639.       this.PaperAlignCombo.SelectedIndexChanged += new System.EventHandler(this.ComboBox2SelectedIndexChanged);
  640.       // 
  641.       // progressBar1
  642.       // 
  643.       this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  644.             | System.Windows.Forms.AnchorStyles.Right)));
  645.       this.progressBar1.Location = new System.Drawing.Point(80, 160);
  646.       this.progressBar1.Name = "progressBar1";
  647.       this.progressBar1.Size = new System.Drawing.Size(528, 16);
  648.       this.progressBar1.TabIndex = 8;
  649.       // 
  650.       // colorDialog1
  651.       // 
  652.       this.colorDialog1.Color = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  653.       // 
  654.       // SelectLanguageLabel
  655.       // 
  656.       this.SelectLanguageLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  657.       this.SelectLanguageLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  658.       this.SelectLanguageLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  659.       this.SelectLanguageLabel.Location = new System.Drawing.Point(448, 72);
  660.       this.SelectLanguageLabel.Name = "SelectLanguageLabel";
  661.       this.SelectLanguageLabel.Size = new System.Drawing.Size(208, 40);
  662.       this.SelectLanguageLabel.TabIndex = 9;
  663.       this.SelectLanguageLabel.Text = "Please select language:";
  664.       this.SelectLanguageLabel.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  665.       // 
  666.       // CutoutInfoLabel
  667.       // 
  668.       this.CutoutInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  669.             | System.Windows.Forms.AnchorStyles.Right)));
  670.       this.CutoutInfoLabel.Location = new System.Drawing.Point(104, 88);
  671.       this.CutoutInfoLabel.Name = "CutoutInfoLabel";
  672.       this.CutoutInfoLabel.Size = new System.Drawing.Size(520, 40);
  673.       this.CutoutInfoLabel.TabIndex = 20;
  674.       this.CutoutInfoLabel.Text = "This option will draw a dim rectangle around the rasterbation graphic of each pag" +
  675. "e. The border will make it considerably easier to cut away the empty margins. If" +
  676. " you plan not to cut out the margins, you should uncheck this.";
  677.       // 
  678.       // pictureBox2
  679.       // 
  680.       this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  681.             | System.Windows.Forms.AnchorStyles.Left) 
  682.             | System.Windows.Forms.AnchorStyles.Right)));
  683.       this.pictureBox2.Location = new System.Drawing.Point(32, 48);
  684.       this.pictureBox2.Name = "pictureBox2";
  685.       this.pictureBox2.Size = new System.Drawing.Size(300, 300);
  686.       this.pictureBox2.TabIndex = 21;
  687.       this.pictureBox2.TabStop = false;
  688.       // 
  689.       // pictureBox1
  690.       // 
  691.       this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  692.       this.pictureBox1.Location = new System.Drawing.Point(0, 0);
  693.       this.pictureBox1.Name = "pictureBox1";
  694.       this.pictureBox1.Size = new System.Drawing.Size(1142, 128);
  695.       this.pictureBox1.TabIndex = 0;
  696.       this.pictureBox1.TabStop = false;
  697.       // 
  698.       // GalleryPlugLabel
  699.       // 
  700.       this.GalleryPlugLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  701.             | System.Windows.Forms.AnchorStyles.Right)));
  702.       this.GalleryPlugLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  703.       this.GalleryPlugLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  704.       this.GalleryPlugLabel.Location = new System.Drawing.Point(80, 216);
  705.       this.GalleryPlugLabel.Name = "GalleryPlugLabel";
  706.       this.GalleryPlugLabel.Size = new System.Drawing.Size(544, 48);
  707.       this.GalleryPlugLabel.TabIndex = 21;
  708.       this.GalleryPlugLabel.Text = "Please take a photograph of your picture and submit it to the Rasterbation Galler" +
  709. "y!";
  710.       // 
  711.       // DotSizeLabel
  712.       // 
  713.       this.DotSizeLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  714.       this.DotSizeLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  715.       this.DotSizeLabel.Location = new System.Drawing.Point(88, 144);
  716.       this.DotSizeLabel.Name = "DotSizeLabel";
  717.       this.DotSizeLabel.Size = new System.Drawing.Size(368, 24);
  718.       this.DotSizeLabel.TabIndex = 13;
  719.       this.DotSizeLabel.Text = "Dot size";
  720.       this.DotSizeLabel.Click += new System.EventHandler(this.Label4Click);
  721.       // 
  722.       // ColorModeLabel
  723.       // 
  724.       this.ColorModeLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  725.       this.ColorModeLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  726.       this.ColorModeLabel.Location = new System.Drawing.Point(88, 224);
  727.       this.ColorModeLabel.Name = "ColorModeLabel";
  728.       this.ColorModeLabel.Size = new System.Drawing.Size(368, 24);
  729.       this.ColorModeLabel.TabIndex = 15;
  730.       this.ColorModeLabel.Text = "Color mode";
  731.       this.ColorModeLabel.Click += new System.EventHandler(this.Label4Click);
  732.       // 
  733.       // TitleBg
  734.       // 
  735.       this.TitleBg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  736.             | System.Windows.Forms.AnchorStyles.Left) 
  737.             | System.Windows.Forms.AnchorStyles.Right)));
  738.       this.TitleBg.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(89)), ((System.Byte)(16)), ((System.Byte)(16)));
  739.       this.TitleBg.Location = new System.Drawing.Point(0, 0);
  740.       this.TitleBg.Name = "TitleBg";
  741.       this.TitleBg.Size = new System.Drawing.Size(696, 128);
  742.       this.TitleBg.TabIndex = 16;
  743.       // 
  744.       // SetOptionsLabel
  745.       // 
  746.       this.SetOptionsLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  747.       this.SetOptionsLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  748.       this.SetOptionsLabel.Location = new System.Drawing.Point(88, 24);
  749.       this.SetOptionsLabel.Name = "SetOptionsLabel";
  750.       this.SetOptionsLabel.Size = new System.Drawing.Size(552, 24);
  751.       this.SetOptionsLabel.TabIndex = 8;
  752.       this.SetOptionsLabel.Text = "Set rasterbation options (4/5)";
  753.       this.SetOptionsLabel.Click += new System.EventHandler(this.Label4Click);
  754.       // 
  755.       // RasterbateButton
  756.       // 
  757.       this.RasterbateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  758.       this.RasterbateButton.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  759.       this.RasterbateButton.Location = new System.Drawing.Point(472, 336);
  760.       this.RasterbateButton.Name = "RasterbateButton";
  761.       this.RasterbateButton.Size = new System.Drawing.Size(136, 32);
  762.       this.RasterbateButton.TabIndex = 7;
  763.       this.RasterbateButton.Text = "Rasterbate!";
  764.       this.RasterbateButton.Click += new System.EventHandler(this.Button9Click);
  765.       // 
  766.       // label25
  767.       // 
  768.       this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  769.       this.label25.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  770.       this.label25.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(136)), ((System.Byte)(136)), ((System.Byte)(136)));
  771.       this.label25.Location = new System.Drawing.Point(80, 376);
  772.       this.label25.Name = "label25";
  773.       this.label25.Size = new System.Drawing.Size(544, 24);
  774.       this.label25.TabIndex = 8;
  775.       this.label25.Text = "The Rasterbator Standalone 1.2 - Matias ─rje 2005 - rasterbator@arje.net - Licenc" +
  776. "ed under GPL";
  777.       // 
  778.       // ContinueButton5
  779.       // 
  780.       this.ContinueButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  781.       this.ContinueButton5.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  782.       this.ContinueButton5.Location = new System.Drawing.Point(472, 336);
  783.       this.ContinueButton5.Name = "ContinueButton5";
  784.       this.ContinueButton5.Size = new System.Drawing.Size(136, 32);
  785.       this.ContinueButton5.TabIndex = 7;
  786.       this.ContinueButton5.Text = "Continue >";
  787.       this.ContinueButton5.Click += new System.EventHandler(this.Button6Click);
  788.       // 
  789.       // ContinueButton4
  790.       // 
  791.       this.ContinueButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  792.       this.ContinueButton4.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  793.       this.ContinueButton4.Location = new System.Drawing.Point(472, 336);
  794.       this.ContinueButton4.Name = "ContinueButton4";
  795.       this.ContinueButton4.Size = new System.Drawing.Size(136, 32);
  796.       this.ContinueButton4.TabIndex = 7;
  797.       this.ContinueButton4.Text = "Continue >";
  798.       this.ContinueButton4.Click += new System.EventHandler(this.Button4Click);
  799.       // 
  800.       // ContinueButton1
  801.       // 
  802.       this.ContinueButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  803.       this.ContinueButton1.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  804.       this.ContinueButton1.Location = new System.Drawing.Point(472, 336);
  805.       this.ContinueButton1.Name = "ContinueButton1";
  806.       this.ContinueButton1.Size = new System.Drawing.Size(136, 32);
  807.       this.ContinueButton1.TabIndex = 6;
  808.       this.ContinueButton1.Text = "Continue >";
  809.       this.ContinueButton1.Click += new System.EventHandler(this.Button1Click);
  810.       // 
  811.       // ContinueButton3
  812.       // 
  813.       this.ContinueButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  814.       this.ContinueButton3.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  815.       this.ContinueButton3.Location = new System.Drawing.Point(472, 336);
  816.       this.ContinueButton3.Name = "ContinueButton3";
  817.       this.ContinueButton3.Size = new System.Drawing.Size(136, 32);
  818.       this.ContinueButton3.TabIndex = 7;
  819.       this.ContinueButton3.Text = "Continue >";
  820.       this.ContinueButton3.Click += new System.EventHandler(this.Button5Click);
  821.       // 
  822.       // ContinueButton2
  823.       // 
  824.       this.ContinueButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  825.       this.ContinueButton2.Enabled = false;
  826.       this.ContinueButton2.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  827.       this.ContinueButton2.Location = new System.Drawing.Point(472, 336);
  828.       this.ContinueButton2.Name = "ContinueButton2";
  829.       this.ContinueButton2.Size = new System.Drawing.Size(136, 32);
  830.       this.ContinueButton2.TabIndex = 7;
  831.       this.ContinueButton2.Text = "Continue >";
  832.       this.ContinueButton2.Click += new System.EventHandler(this.Button2Click);
  833.       // 
  834.       // label8
  835.       // 
  836.       this.label8.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  837.       this.label8.ForeColor = System.Drawing.SystemColors.ControlText;
  838.       this.label8.Location = new System.Drawing.Point(304, 232);
  839.       this.label8.Name = "label8";
  840.       this.label8.Size = new System.Drawing.Size(48, 24);
  841.       this.label8.TabIndex = 17;
  842.       this.label8.Text = "mm";
  843.       this.label8.Click += new System.EventHandler(this.Label4Click);
  844.       // 
  845.       // label11
  846.       // 
  847.       this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  848.       this.label11.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  849.       this.label11.ForeColor = System.Drawing.SystemColors.ControlText;
  850.       this.label11.Location = new System.Drawing.Point(360, 176);
  851.       this.label11.Name = "label11";
  852.       this.label11.Size = new System.Drawing.Size(304, 112);
  853.       this.label11.TabIndex = 15;
  854.       this.label11.Click += new System.EventHandler(this.Label4Click);
  855.       // 
  856.       // label7
  857.       // 
  858.       this.label7.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  859.       this.label7.ForeColor = System.Drawing.SystemColors.ControlText;
  860.       this.label7.Location = new System.Drawing.Point(304, 264);
  861.       this.label7.Name = "label7";
  862.       this.label7.Size = new System.Drawing.Size(48, 24);
  863.       this.label7.TabIndex = 18;
  864.       this.label7.Text = "mm";
  865.       this.label7.Click += new System.EventHandler(this.Label4Click);
  866.       // 
  867.       // SelectSourceImageLabel
  868.       // 
  869.       this.SelectSourceImageLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  870.       this.SelectSourceImageLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  871.       this.SelectSourceImageLabel.Location = new System.Drawing.Point(80, 56);
  872.       this.SelectSourceImageLabel.Name = "SelectSourceImageLabel";
  873.       this.SelectSourceImageLabel.Size = new System.Drawing.Size(528, 24);
  874.       this.SelectSourceImageLabel.TabIndex = 8;
  875.       this.SelectSourceImageLabel.Text = "Select source image (1/5)";
  876.       // 
  877.       // Panel1_Welcome
  878.       // 
  879.       this.Panel1_Welcome.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  880.             | System.Windows.Forms.AnchorStyles.Left) 
  881.             | System.Windows.Forms.AnchorStyles.Right)));
  882.       this.Panel1_Welcome.BackColor = System.Drawing.Color.White;
  883.       this.Panel1_Welcome.Controls.Add(this.TranslatorUrl);
  884.       this.Panel1_Welcome.Controls.Add(this.TranslatorInfo);
  885.       this.Panel1_Welcome.Controls.Add(this.LanguageListBox);
  886.       this.Panel1_Welcome.Controls.Add(this.SelectLanguageLabel);
  887.       this.Panel1_Welcome.Controls.Add(this.label25);
  888.       this.Panel1_Welcome.Controls.Add(this.ContinueButton1);
  889.       this.Panel1_Welcome.Controls.Add(this.linkLabel1);
  890.       this.Panel1_Welcome.Controls.Add(this.WelcomeTitle);
  891.       this.Panel1_Welcome.Controls.Add(this.WelcomeInfo);
  892.       this.Panel1_Welcome.Location = new System.Drawing.Point(0, 128);
  893.       this.Panel1_Welcome.Name = "Panel1_Welcome";
  894.       this.Panel1_Welcome.Size = new System.Drawing.Size(696, 392);
  895.       this.Panel1_Welcome.TabIndex = 5;
  896.       // 
  897.       // timer1
  898.       // 
  899.       this.timer1.Tick += new System.EventHandler(this.Timer1Tick);
  900.       // 
  901.       // BackButton5
  902.       // 
  903.       this.BackButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  904.       this.BackButton5.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  905.       this.BackButton5.Location = new System.Drawing.Point(80, 336);
  906.       this.BackButton5.Name = "BackButton5";
  907.       this.BackButton5.Size = new System.Drawing.Size(96, 32);
  908.       this.BackButton5.TabIndex = 28;
  909.       this.BackButton5.Text = "< Back";
  910.       this.BackButton5.Click += new System.EventHandler(this.Button15Click);
  911.       // 
  912.       // BackButton4
  913.       // 
  914.       this.BackButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  915.       this.BackButton4.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  916.       this.BackButton4.Location = new System.Drawing.Point(80, 336);
  917.       this.BackButton4.Name = "BackButton4";
  918.       this.BackButton4.Size = new System.Drawing.Size(96, 32);
  919.       this.BackButton4.TabIndex = 27;
  920.       this.BackButton4.Text = "< Back";
  921.       this.BackButton4.Click += new System.EventHandler(this.Button14Click);
  922.       // 
  923.       // BackButton3
  924.       // 
  925.       this.BackButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  926.       this.BackButton3.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  927.       this.BackButton3.Location = new System.Drawing.Point(360, 336);
  928.       this.BackButton3.Name = "BackButton3";
  929.       this.BackButton3.Size = new System.Drawing.Size(96, 32);
  930.       this.BackButton3.TabIndex = 23;
  931.       this.BackButton3.Text = "< Back";
  932.       this.BackButton3.Click += new System.EventHandler(this.Button13Click);
  933.       // 
  934.       // BackButton2
  935.       // 
  936.       this.BackButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  937.       this.BackButton2.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  938.       this.BackButton2.Location = new System.Drawing.Point(80, 336);
  939.       this.BackButton2.Name = "BackButton2";
  940.       this.BackButton2.Size = new System.Drawing.Size(96, 32);
  941.       this.BackButton2.TabIndex = 21;
  942.       this.BackButton2.Text = "< Back";
  943.       this.BackButton2.Click += new System.EventHandler(this.Button12Click);
  944.       // 
  945.       // BackButton1
  946.       // 
  947.       this.BackButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  948.       this.BackButton1.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  949.       this.BackButton1.Location = new System.Drawing.Point(80, 336);
  950.       this.BackButton1.Name = "BackButton1";
  951.       this.BackButton1.Size = new System.Drawing.Size(96, 32);
  952.       this.BackButton1.TabIndex = 11;
  953.       this.BackButton1.Text = "< Back";
  954.       this.BackButton1.Click += new System.EventHandler(this.Button11Click);
  955.       // 
  956.       // CutoutCheckbox
  957.       // 
  958.       this.CutoutCheckbox.Checked = true;
  959.       this.CutoutCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
  960.       this.CutoutCheckbox.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  961.       this.CutoutCheckbox.Location = new System.Drawing.Point(88, 64);
  962.       this.CutoutCheckbox.Name = "CutoutCheckbox";
  963.       this.CutoutCheckbox.Size = new System.Drawing.Size(488, 24);
  964.       this.CutoutCheckbox.TabIndex = 19;
  965.       this.CutoutCheckbox.Text = "Draw cutout line around rasterbated area";
  966.       // 
  967.       // Panel9_Completed
  968.       // 
  969.       this.Panel9_Completed.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  970.             | System.Windows.Forms.AnchorStyles.Left) 
  971.             | System.Windows.Forms.AnchorStyles.Right)));
  972.       this.Panel9_Completed.Controls.Add(this.TranslatorUrl2);
  973.       this.Panel9_Completed.Controls.Add(this.linkLabel3);
  974.       this.Panel9_Completed.Controls.Add(this.GalleryPlugLabel);
  975.       this.Panel9_Completed.Controls.Add(this.OpenFileCheckbox);
  976.       this.Panel9_Completed.Controls.Add(this.CloseApplicationButton);
  977.       this.Panel9_Completed.Controls.Add(this.linkLabel2);
  978.       this.Panel9_Completed.Controls.Add(this.CompletedLabel);
  979.       this.Panel9_Completed.Controls.Add(this.PrintInfoLabel);
  980.       this.Panel9_Completed.Location = new System.Drawing.Point(0, 128);
  981.       this.Panel9_Completed.Name = "Panel9_Completed";
  982.       this.Panel9_Completed.Size = new System.Drawing.Size(696, 392);
  983.       this.Panel9_Completed.TabIndex = 15;
  984.       this.Panel9_Completed.Visible = false;
  985.       // 
  986.       // LowPriorityRasterbation
  987.       // 
  988.       this.LowPriorityRasterbation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  989.       this.LowPriorityRasterbation.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  990.       this.LowPriorityRasterbation.Location = new System.Drawing.Point(80, 320);
  991.       this.LowPriorityRasterbation.Name = "LowPriorityRasterbation";
  992.       this.LowPriorityRasterbation.Size = new System.Drawing.Size(488, 24);
  993.       this.LowPriorityRasterbation.TabIndex = 22;
  994.       this.LowPriorityRasterbation.Text = "Rasterbate on low priority";
  995.       this.LowPriorityRasterbation.CheckedChanged += new System.EventHandler(this.LowPriorityRasterbationCheckedChanged);
  996.       // 
  997.       // PortraitSymbol
  998.       // 
  999.       this.PortraitSymbol.Image = ((System.Drawing.Image)(resources.GetObject("PortraitSymbol.Image")));
  1000.       this.PortraitSymbol.Location = new System.Drawing.Point(504, 128);
  1001.       this.PortraitSymbol.Name = "PortraitSymbol";
  1002.       this.PortraitSymbol.Size = new System.Drawing.Size(42, 42);
  1003.       this.PortraitSymbol.TabIndex = 23;
  1004.       this.PortraitSymbol.TabStop = false;
  1005.       // 
  1006.       // HeightLabel
  1007.       // 
  1008.       this.HeightLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1009.       this.HeightLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  1010.       this.HeightLabel.Location = new System.Drawing.Point(136, 264);
  1011.       this.HeightLabel.Name = "HeightLabel";
  1012.       this.HeightLabel.Size = new System.Drawing.Size(80, 24);
  1013.       this.HeightLabel.TabIndex = 15;
  1014.       this.HeightLabel.Text = "Height";
  1015.       this.HeightLabel.Click += new System.EventHandler(this.Label4Click);
  1016.       // 
  1017.       // PrintInfoLabel
  1018.       // 
  1019.       this.PrintInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
  1020.             | System.Windows.Forms.AnchorStyles.Right)));
  1021.       this.PrintInfoLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1022.       this.PrintInfoLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  1023.       this.PrintInfoLabel.Location = new System.Drawing.Point(80, 88);
  1024.       this.PrintInfoLabel.Name = "PrintInfoLabel";
  1025.       this.PrintInfoLabel.Size = new System.Drawing.Size(544, 104);
  1026.       this.PrintInfoLabel.TabIndex = 5;
  1027.       this.PrintInfoLabel.Text = @"When printing the image in Adobe Reader, choose Page scaling: Fit to paper at the options window that comes up. If you chose horizontal paper alignment, also make sure Auto-Rotate and Center is selected. Most printers cannot print to the margins of the paper - these settings ensure that all the images will be completely printed.";
  1028.       // 
  1029.       // OutputSizeLabel
  1030.       // 
  1031.       this.OutputSizeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  1032.       this.OutputSizeLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1033.       this.OutputSizeLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  1034.       this.OutputSizeLabel.Location = new System.Drawing.Point(352, 40);
  1035.       this.OutputSizeLabel.Name = "OutputSizeLabel";
  1036.       this.OutputSizeLabel.Size = new System.Drawing.Size(312, 48);
  1037.       this.OutputSizeLabel.TabIndex = 8;
  1038.       this.OutputSizeLabel.Text = "Define output size (3/5)";
  1039.       this.OutputSizeLabel.Click += new System.EventHandler(this.Label4Click);
  1040.       // 
  1041.       // CustomColorDisplay
  1042.       // 
  1043.       this.CustomColorDisplay.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  1044.       this.CustomColorDisplay.Location = new System.Drawing.Point(216, 272);
  1045.       this.CustomColorDisplay.Name = "CustomColorDisplay";
  1046.       this.CustomColorDisplay.Size = new System.Drawing.Size(24, 24);
  1047.       this.CustomColorDisplay.TabIndex = 25;
  1048.       // 
  1049.       // BlackRadio
  1050.       // 
  1051.       this.BlackRadio.Checked = true;
  1052.       this.BlackRadio.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1053.       this.BlackRadio.Location = new System.Drawing.Point(192, 224);
  1054.       this.BlackRadio.Name = "BlackRadio";
  1055.       this.BlackRadio.Size = new System.Drawing.Size(248, 24);
  1056.       this.BlackRadio.TabIndex = 22;
  1057.       this.BlackRadio.TabStop = true;
  1058.       this.BlackRadio.Text = "Black";
  1059.       // 
  1060.       // SaveAsLabel
  1061.       // 
  1062.       this.SaveAsLabel.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1063.       this.SaveAsLabel.ForeColor = System.Drawing.SystemColors.ControlText;
  1064.       this.SaveAsLabel.Location = new System.Drawing.Point(80, 56);
  1065.       this.SaveAsLabel.Name = "SaveAsLabel";
  1066.       this.SaveAsLabel.Size = new System.Drawing.Size(512, 24);
  1067.       this.SaveAsLabel.TabIndex = 8;
  1068.       this.SaveAsLabel.Text = "Save rasterbation as (5/5)";
  1069.       // 
  1070.       // Panel4_OutputSize
  1071.       // 
  1072.       this.Panel4_OutputSize.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  1073.             | System.Windows.Forms.AnchorStyles.Left) 
  1074.             | System.Windows.Forms.AnchorStyles.Right)));
  1075.       this.Panel4_OutputSize.Controls.Add(this.BackButton3);
  1076.       this.Panel4_OutputSize.Controls.Add(this.MeasureDimensionCombo);
  1077.       this.Panel4_OutputSize.Controls.Add(this.pictureBox2);
  1078.       this.Panel4_OutputSize.Controls.Add(this.label11);
  1079.       this.Panel4_OutputSize.Controls.Add(this.numericUpDown4);
  1080.       this.Panel4_OutputSize.Controls.Add(this.SheetsLabel);
  1081.       this.Panel4_OutputSize.Controls.Add(this.OutputSizeLabel);
  1082.       this.Panel4_OutputSize.Controls.Add(this.ContinueButton4);
  1083.       this.Panel4_OutputSize.Location = new System.Drawing.Point(0, 128);
  1084.       this.Panel4_OutputSize.Name = "Panel4_OutputSize";
  1085.       this.Panel4_OutputSize.Size = new System.Drawing.Size(696, 392);
  1086.       this.Panel4_OutputSize.TabIndex = 11;
  1087.       this.Panel4_OutputSize.Visible = false;
  1088.       // 
  1089.       // numericUpDown4
  1090.       // 
  1091.       this.numericUpDown4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  1092.       this.numericUpDown4.DecimalPlaces = 1;
  1093.       this.numericUpDown4.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1094.       this.numericUpDown4.Location = new System.Drawing.Point(360, 104);
  1095.       this.numericUpDown4.Maximum = new System.Decimal(new int[] {
  1096.             1000,
  1097.             0,
  1098.             0,
  1099.             0});
  1100.       this.numericUpDown4.Minimum = new System.Decimal(new int[] {
  1101.             1,
  1102.             0,
  1103.             0,
  1104.             0});
  1105.       this.numericUpDown4.Name = "numericUpDown4";
  1106.       this.numericUpDown4.Size = new System.Drawing.Size(80, 27);
  1107.       this.numericUpDown4.TabIndex = 14;
  1108.       this.numericUpDown4.Value = new System.Decimal(new int[] {
  1109.             5,
  1110.             0,
  1111.             0,
  1112.             0});
  1113.       this.numericUpDown4.ValueChanged += new System.EventHandler(this.NumericUpDown4ValueChanged);
  1114.       // 
  1115.       // numericUpDown5
  1116.       // 
  1117.       this.numericUpDown5.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1118.       this.numericUpDown5.Location = new System.Drawing.Point(176, 144);
  1119.       this.numericUpDown5.Maximum = new System.Decimal(new int[] {
  1120.             500,
  1121.             0,
  1122.             0,
  1123.             0});
  1124.       this.numericUpDown5.Minimum = new System.Decimal(new int[] {
  1125.             1,
  1126.             0,
  1127.             0,
  1128.             0});
  1129.       this.numericUpDown5.Name = "numericUpDown5";
  1130.       this.numericUpDown5.Size = new System.Drawing.Size(72, 27);
  1131.       this.numericUpDown5.TabIndex = 14;
  1132.       this.numericUpDown5.Value = new System.Decimal(new int[] {
  1133.             10,
  1134.             0,
  1135.             0,
  1136.             0});
  1137.       // 
  1138.       // numericUpDown2
  1139.       // 
  1140.       this.numericUpDown2.Enabled = false;
  1141.       this.numericUpDown2.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1142.       this.numericUpDown2.Location = new System.Drawing.Point(216, 264);
  1143.       this.numericUpDown2.Maximum = new System.Decimal(new int[] {
  1144.             10000,
  1145.             0,
  1146.             0,
  1147.             0});
  1148.       this.numericUpDown2.Minimum = new System.Decimal(new int[] {
  1149.             50,
  1150.             0,
  1151.             0,
  1152.             0});
  1153.       this.numericUpDown2.Name = "numericUpDown2";
  1154.       this.numericUpDown2.Size = new System.Drawing.Size(80, 27);
  1155.       this.numericUpDown2.TabIndex = 16;
  1156.       this.numericUpDown2.Value = new System.Decimal(new int[] {
  1157.             200,
  1158.             0,
  1159.             0,
  1160.             0});
  1161.       // 
  1162.       // Panel8_Rasterbating
  1163.       // 
  1164.       this.Panel8_Rasterbating.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  1165.             | System.Windows.Forms.AnchorStyles.Left) 
  1166.             | System.Windows.Forms.AnchorStyles.Right)));
  1167.       this.Panel8_Rasterbating.Controls.Add(this.RasterbateBackgroundInfoLabel);
  1168.       this.Panel8_Rasterbating.Controls.Add(this.LowPriorityRasterbation);
  1169.       this.Panel8_Rasterbating.Controls.Add(this.EstimatedTimeRemainingLabel);
  1170.       this.Panel8_Rasterbating.Controls.Add(this.PleaseWaitLabel);
  1171.       this.Panel8_Rasterbating.Controls.Add(this.progressBar1);
  1172.       this.Panel8_Rasterbating.Location = new System.Drawing.Point(0, 128);
  1173.       this.Panel8_Rasterbating.Name = "Panel8_Rasterbating";
  1174.       this.Panel8_Rasterbating.Size = new System.Drawing.Size(696, 392);
  1175.       this.Panel8_Rasterbating.TabIndex = 14;
  1176.       this.Panel8_Rasterbating.Visible = false;
  1177.       // 
  1178.       // MultiColorRadio
  1179.       // 
  1180.       this.MultiColorRadio.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1181.       this.MultiColorRadio.Location = new System.Drawing.Point(192, 304);
  1182.       this.MultiColorRadio.Name = "MultiColorRadio";
  1183.       this.MultiColorRadio.Size = new System.Drawing.Size(248, 24);
  1184.       this.MultiColorRadio.TabIndex = 24;
  1185.       this.MultiColorRadio.Text = "Multi-color";
  1186.       // 
  1187.       // LanguageListBox
  1188.       // 
  1189.       this.LanguageListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  1190.             | System.Windows.Forms.AnchorStyles.Right)));
  1191.       this.LanguageListBox.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1192.       this.LanguageListBox.ItemHeight = 19;
  1193.       this.LanguageListBox.Items.AddRange(new object[] {
  1194.             "English",
  1195.             "Finnish",
  1196.             "Deutch"});
  1197.       this.LanguageListBox.Location = new System.Drawing.Point(448, 112);
  1198.       this.LanguageListBox.Name = "LanguageListBox";
  1199.       this.LanguageListBox.Size = new System.Drawing.Size(168, 118);
  1200.       this.LanguageListBox.TabIndex = 10;
  1201.       this.LanguageListBox.SelectedIndexChanged += new System.EventHandler(this.LanguageListBoxSelectedIndexChanged);
  1202.       // 
  1203.       // Panel2_SourceImage
  1204.       // 
  1205.       this.Panel2_SourceImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  1206.             | System.Windows.Forms.AnchorStyles.Left) 
  1207.             | System.Windows.Forms.AnchorStyles.Right)));
  1208.       this.Panel2_SourceImage.Controls.Add(this.BackButton1);
  1209.       this.Panel2_SourceImage.Controls.Add(this.BrowseButton1);
  1210.       this.Panel2_SourceImage.Controls.Add(this.textBox1);
  1211.       this.Panel2_SourceImage.Controls.Add(this.SelectSourceImageLabel);
  1212.       this.Panel2_SourceImage.Controls.Add(this.ContinueButton2);
  1213.       this.Panel2_SourceImage.Location = new System.Drawing.Point(0, 128);
  1214.       this.Panel2_SourceImage.Name = "Panel2_SourceImage";
  1215.       this.Panel2_SourceImage.Size = new System.Drawing.Size(696, 392);
  1216.       this.Panel2_SourceImage.TabIndex = 9;
  1217.       this.Panel2_SourceImage.Visible = false;
  1218.       // 
  1219.       // OpenFileCheckbox
  1220.       // 
  1221.       this.OpenFileCheckbox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1222.       this.OpenFileCheckbox.CheckAlign = System.Drawing.ContentAlignment.TopLeft;
  1223.       this.OpenFileCheckbox.Checked = true;
  1224.       this.OpenFileCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
  1225.       this.OpenFileCheckbox.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1226.       this.OpenFileCheckbox.Location = new System.Drawing.Point(440, 304);
  1227.       this.OpenFileCheckbox.Name = "OpenFileCheckbox";
  1228.       this.OpenFileCheckbox.Size = new System.Drawing.Size(248, 24);
  1229.       this.OpenFileCheckbox.TabIndex = 20;
  1230.       this.OpenFileCheckbox.Text = "Open rasticulate file";
  1231.       this.OpenFileCheckbox.TextAlign = System.Drawing.ContentAlignment.TopLeft;
  1232.       // 
  1233.       // label10
  1234.       // 
  1235.       this.label10.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1236.       this.label10.ForeColor = System.Drawing.SystemColors.ControlText;
  1237.       this.label10.Location = new System.Drawing.Point(256, 144);
  1238.       this.label10.Name = "label10";
  1239.       this.label10.Size = new System.Drawing.Size(40, 24);
  1240.       this.label10.TabIndex = 17;
  1241.       this.label10.Text = "mm";
  1242.       this.label10.Click += new System.EventHandler(this.Label4Click);
  1243.       // 
  1244.       // CloseApplicationButton
  1245.       // 
  1246.       this.CloseApplicationButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1247.       this.CloseApplicationButton.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1248.       this.CloseApplicationButton.Location = new System.Drawing.Point(456, 336);
  1249.       this.CloseApplicationButton.Name = "CloseApplicationButton";
  1250.       this.CloseApplicationButton.Size = new System.Drawing.Size(184, 32);
  1251.       this.CloseApplicationButton.TabIndex = 6;
  1252.       this.CloseApplicationButton.Text = "Close application";
  1253.       this.CloseApplicationButton.Click += new System.EventHandler(this.Button10Click);
  1254.       // 
  1255.       // MeasureDimensionCombo
  1256.       // 
  1257.       this.MeasureDimensionCombo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  1258.       this.MeasureDimensionCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1259.       this.MeasureDimensionCombo.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1260.       this.MeasureDimensionCombo.Items.AddRange(new object[] {
  1261.             "wide",
  1262.             "high"});
  1263.       this.MeasureDimensionCombo.Location = new System.Drawing.Point(520, 104);
  1264.       this.MeasureDimensionCombo.Name = "MeasureDimensionCombo";
  1265.       this.MeasureDimensionCombo.Size = new System.Drawing.Size(88, 26);
  1266.       this.MeasureDimensionCombo.TabIndex = 22;
  1267.       this.MeasureDimensionCombo.SelectedIndexChanged += new System.EventHandler(this.NumericUpDown4ValueChanged);
  1268.       // 
  1269.       // TranslatorUrl2
  1270.       // 
  1271.       this.TranslatorUrl2.ActiveLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  1272.       this.TranslatorUrl2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  1273.       this.TranslatorUrl2.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1274.       this.TranslatorUrl2.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
  1275.       this.TranslatorUrl2.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(78)), ((System.Byte)(7)), ((System.Byte)(7)));
  1276.       this.TranslatorUrl2.Location = new System.Drawing.Point(80, 296);
  1277.       this.TranslatorUrl2.Name = "TranslatorUrl2";
  1278.       this.TranslatorUrl2.Size = new System.Drawing.Size(328, 23);
  1279.       this.TranslatorUrl2.TabIndex = 23;
  1280.       this.TranslatorUrl2.TabStop = true;
  1281.       this.TranslatorUrl2.Text = "http://arje.net/rasterbator";
  1282.       this.TranslatorUrl2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.TranslatorUrlLinkClicked);
  1283.       // 
  1284.       // TranslatorUrl
  1285.       // 
  1286.       this.TranslatorUrl.ActiveLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(158)), ((System.Byte)(11)), ((System.Byte)(14)));
  1287.       this.TranslatorUrl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  1288.       this.TranslatorUrl.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0)));
  1289.       this.TranslatorUrl.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
  1290.       this.TranslatorUrl.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(78)), ((System.Byte)(7)), ((System.Byte)(7)));
  1291.       this.TranslatorUrl.Location = new System.Drawing.Point(448, 264);
  1292.       this.TranslatorUrl.Name = "TranslatorUrl";
  1293.       this.TranslatorUrl.Size = new System.Drawing.Size(200, 16);
  1294.       this.TranslatorUrl.TabIndex = 12;
  1295.       this.TranslatorUrl.TabStop = true;
  1296.       this.TranslatorUrl.Text = "http://translatorurl";
  1297.       this.TranslatorUrl.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.TranslatorUrlLinkClicked);
  1298.       // 
  1299.       // MainForm
  1300.       // 
  1301.       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  1302.       this.BackColor = System.Drawing.Color.White;
  1303.       this.ClientSize = new System.Drawing.Size(692, 523);
  1304.       this.Controls.Add(this.Panel1_Welcome);
  1305.       this.Controls.Add(this.Panel4_OutputSize);
  1306.       this.Controls.Add(this.Panel9_Completed);
  1307.       this.Controls.Add(this.Panel8_Rasterbating);
  1308.       this.Controls.Add(this.Panel7_OutputFilename);
  1309.       this.Controls.Add(this.Panel5_Options);
  1310.       this.Controls.Add(this.Panel3_PaperSize);
  1311.       this.Controls.Add(this.Panel2_SourceImage);
  1312.       this.Controls.Add(this.pictureBox1);
  1313.       this.Controls.Add(this.TitleBg);
  1314.       this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  1315.       this.MinimumSize = new System.Drawing.Size(700, 550);
  1316.       this.Name = "MainForm";
  1317.       this.Text = "The Rasterbator";
  1318.       this.Resize += new System.EventHandler(this.MainFormResize);
  1319.       this.Load += new System.EventHandler(this.MainFormLoad);
  1320.       this.Panel7_OutputFilename.ResumeLayout(false);
  1321.       this.Panel5_Options.ResumeLayout(false);
  1322.       this.Panel3_PaperSize.ResumeLayout(false);
  1323.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
  1324.       this.Panel1_Welcome.ResumeLayout(false);
  1325.       this.Panel9_Completed.ResumeLayout(false);
  1326.       this.Panel4_OutputSize.ResumeLayout(false);
  1327.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
  1328.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
  1329.       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
  1330.       this.Panel8_Rasterbating.ResumeLayout(false);
  1331.       this.Panel2_SourceImage.ResumeLayout(false);
  1332.       this.ResumeLayout(false);
  1333.     }
  1334.         #endregion
  1335.  
  1336.         bool CheckFile(string dir, string filename) {
  1337.           if(File.Exists(dir+filename)) return true;
  1338.           MessageBox.Show("Cannot find file "+filename+" - make sure it is in the installation directory ("+dir+"). Cannot continue, sorry.");
  1339.           return false;
  1340.         }
  1341.         
  1342.         Control FindControl(Control Source, string s) {
  1343.           foreach(Control C in Source.Controls) {
  1344.             if(C.Name==s) return C;
  1345.         Control c=FindControl(C, s);
  1346.         if(c!=null) return c;
  1347.           }
  1348.           return null;
  1349.         }
  1350.         
  1351.         void LanguageListBoxSelectedIndexChanged(object sender, System.EventArgs e) {
  1352.           try {
  1353.             XmlTextReader Rdr=new XmlTextReader(LanguageFileNames[LanguageListBox.SelectedIndex]);
  1354.             Labels.Clear();
  1355.             while(Rdr.Read()) {
  1356.               if(Rdr.NodeType!=XmlNodeType.Element) continue;
  1357.               if(Rdr.Name!="item") continue;
  1358.               
  1359.               string n=Rdr.GetAttribute("name");
  1360.               string s=Rdr.ReadElementString();
  1361.               
  1362.               Control C=FindControl(this, n);
  1363.               
  1364.               Labels[n]=s;
  1365.               
  1366.               if(C is Label) (C as Label).Text=s;
  1367.               if(C is Button) (C as Button).Text=s;
  1368.               if(C is CheckBox) (C as CheckBox).Text=s;
  1369.               if(C is RadioButton) (C as RadioButton).Text=s;
  1370.               if(C is ComboBox) {
  1371.                 string[] p=s.Split('|');
  1372.                 for(int i=0;i<p.Length;i++) (C as ComboBox).Items[i]=p[i];
  1373.               }
  1374.               if(C is LinkLabel) {
  1375.                 // prevent running of processes
  1376.             if(!s.ToLower().StartsWith("http://")) s="";
  1377.                 try {
  1378.                   new Uri(s); // check
  1379.                   (C as LinkLabel).Text=s;
  1380.               (C as LinkLabel).Visible=true;
  1381.               if(n=="TranslatorUrl") {
  1382.                 TranslatorUrl2.Text=s;
  1383.                 TranslatorUrl2.Visible=true;
  1384.               }
  1385.                 } catch {
  1386.               (C as LinkLabel).Visible=false;
  1387.                   (C as LinkLabel).Text="";
  1388.                   if(n=="TranslatorUrl") {
  1389.                     TranslatorUrl2.Text="";
  1390.                     TranslatorUrl2.Visible=false;
  1391.                   }
  1392.                 }
  1393.               }
  1394.             }
  1395.             Rdr.Close();
  1396.             SelectRasterbationSourceDialog.Title=Labels["SelectSource"].ToString();
  1397.             SelectRasterbationSourceDialog.Filter=Labels["SelectSourceFilter"].ToString();
  1398.             SelectRasterbationTargetDialog.Filter=Labels["SelectTargetFilter"].ToString();
  1399.           } catch(Exception E) {
  1400.             MessageBox.Show("Error in language data file "+LanguageFileNames[LanguageListBox.SelectedIndex]+" - "+E.Message);
  1401.           }
  1402.         }
  1403.         
  1404.         string[] LanguageFileNames=null;
  1405.         string ApplicationDirectory="";
  1406.         Hashtable Labels=new Hashtable();
  1407.         
  1408.         void MainFormLoad(object sender, System.EventArgs e) {
  1409.           ApplicationDirectory=Assembly.GetExecutingAssembly().CodeBase;
  1410.           ApplicationDirectory=ApplicationDirectory.Replace("file:///","").Replace("/","\\");
  1411.           ApplicationDirectory=ApplicationDirectory.Substring(0, ApplicationDirectory.LastIndexOf("\\")+1);
  1412.           if(!CheckFile(ApplicationDirectory, "itextsharp.dll")) {
  1413.             Close();
  1414.             return;
  1415.           }
  1416.           if(!CheckFile(ApplicationDirectory, "ICSharpCode.SharpZipLib.dll")) {
  1417.             Close();
  1418.             return;
  1419.           }
  1420.           
  1421.           if(!Directory.Exists(ApplicationDirectory+"languages")) {
  1422.             MessageBox.Show("The language data directory ("+ApplicationDirectory+"languages) seems to be missing. Please extract the language directory from the archive file.");
  1423.             Close();
  1424.           }
  1425.           
  1426.           LanguageListBox.Items.Clear();
  1427.           LanguageFileNames=Directory.GetFiles(ApplicationDirectory+"languages");
  1428.           foreach(string s in LanguageFileNames) {
  1429.             XmlTextReader Rdr=null;
  1430.             try {
  1431.               Rdr=new XmlTextReader(s);
  1432.               while(Rdr.Read()) {
  1433.                 if(Rdr.NodeType!=XmlNodeType.Element) continue;
  1434.                 if(Rdr.Name=="language") {
  1435.                   string lt=Rdr.GetAttribute("nativename");
  1436.                   if(lt.ToLower()=="english") {
  1437.                     LanguageListBox.Items.Add(lt);
  1438.                     LanguageListBox.SelectedIndex=LanguageListBox.Items.Count-1;
  1439.                     //LanguageListBox.Items.Insert(0, "English");
  1440.                     //LanguageListBox.SelectedIndex=0;
  1441.                     continue;
  1442.                   }
  1443.                   if(Rdr.GetAttribute("englishname")!=null) lt=Rdr.GetAttribute("englishname")+" ("+lt+")";
  1444.                   LanguageListBox.Items.Add(lt);
  1445.                 }
  1446.               }
  1447.               Rdr.Close();
  1448.             } catch(Exception E) {
  1449.               MessageBox.Show("Error in language data file "+s+" - "+E.Message);
  1450.               Rdr.Close();
  1451.             }
  1452.           }
  1453.           
  1454.           if(LanguageListBox.Items.Count==0) {
  1455.             MessageBox.Show("Could not find any language files. Please extract the language directory from the archive file.");
  1456.             Close();
  1457.           }
  1458.         }
  1459.         
  1460.         void Button1Click(object sender, System.EventArgs e)
  1461.         {
  1462.           Panel1_Welcome.Visible=false;
  1463.           Panel2_SourceImage.Visible=true;
  1464.         }
  1465.         
  1466.         void Button2Click(object sender, System.EventArgs e)
  1467.         {
  1468.           Panel2_SourceImage.Visible=false;
  1469.           Panel3_PaperSize.Visible=true;
  1470.           if(PaperSizeCombo.SelectedIndex<0) PaperSizeCombo.SelectedIndex=0;
  1471.           if(PaperAlignCombo.SelectedIndex<0) PaperAlignCombo.SelectedIndex=0;
  1472.         }
  1473.         
  1474.         void Button3Click(object sender, System.EventArgs e)
  1475.         {
  1476.           SelectRasterbationSourceDialog.ShowDialog();
  1477.         }
  1478.         
  1479.         void OpenFileDialog1FileOk(object sender, System.ComponentModel.CancelEventArgs e)
  1480.         {
  1481.           textBox1.Text=SelectRasterbationSourceDialog.FileName;
  1482.         }
  1483.         
  1484.         void TextBox1TextChanged(object sender, System.EventArgs e)
  1485.         {
  1486.           ContinueButton2.Enabled=File.Exists(textBox1.Text);
  1487.           string s=textBox1.Text;
  1488.           if(s.IndexOf(".")<0) s+=".";
  1489.           s=s.Substring(0, s.LastIndexOf("."));
  1490.           string fn=s;
  1491.           int c=0;
  1492.           while(File.Exists(fn+".pdf")) {
  1493.             c++;
  1494.             fn=s+"_"+c;
  1495.           }
  1496.           textBox2.Text=fn+".pdf";
  1497.         }
  1498.         
  1499.         void Label4Click(object sender, System.EventArgs e)
  1500.         {
  1501.           
  1502.         }
  1503.         
  1504.         void ComboBox2SelectedIndexChanged(object sender, System.EventArgs e) {
  1505.           PortraitSymbol.Visible=PaperAlignCombo.SelectedIndex==0;
  1506.           LandscapeSymbol.Visible=PaperAlignCombo.SelectedIndex==1;
  1507.         }
  1508.         
  1509.         Bitmap DisplayImage=null;
  1510.         Bitmap OriginalImage=null;
  1511.  
  1512.         // in millimeters
  1513.         decimal PaperWidth=210M;
  1514.         decimal PaperHeight=297M;
  1515.                   
  1516.         void Button5Click(object sender, System.EventArgs e) {
  1517.           Panel3_PaperSize.Visible=false;
  1518.           Panel4_OutputSize.Visible=true;
  1519.           if(MeasureDimensionCombo.SelectedIndex<0) MeasureDimensionCombo.SelectedIndex=0;
  1520.           
  1521.           if(StandardPaperRadio.Checked) {
  1522.             decimal s1=0, s2=0;
  1523.             switch(PaperSizeCombo.SelectedIndex) {
  1524.               case 0 : s1=210M; s2=297M; break;
  1525.               case 1 : s1=297M; s2=420M; break;
  1526.               case 2 : s1=216M; s2=279M; break;
  1527.               case 3 : s1=216M; s2=356M; break;
  1528.             }
  1529.             
  1530.             if(PaperAlignCombo.SelectedIndex==0) {
  1531.               PaperWidth=s1;
  1532.               PaperHeight=s2;
  1533.             } else {
  1534.               PaperWidth=s2;
  1535.               PaperHeight=s1;
  1536.             }            
  1537.             
  1538.           } else {
  1539.             PaperWidth=numericUpDown1.Value;
  1540.             PaperHeight=numericUpDown2.Value;
  1541.           }
  1542.           
  1543.           int d;
  1544.           if(pictureBox2.Width<pictureBox2.Height) d=pictureBox2.Width;
  1545.             else d=pictureBox2.Height;
  1546.           
  1547.           OriginalImage=Image.FromFile(textBox1.Text) as Bitmap;
  1548.           double w,h;
  1549.           if(OriginalImage.Width>OriginalImage.Height) {
  1550.         w=d;
  1551.         h=d*(double)OriginalImage.Height/(double)OriginalImage.Width;
  1552.           } else {
  1553.         h=d;
  1554.         w=d*(double)OriginalImage.Width/(double)OriginalImage.Height;
  1555.           }
  1556.           DisplayImage=new Bitmap(OriginalImage, new Size((int)w, (int)h));
  1557.           
  1558.      
  1559.       DisplayPaging();
  1560.         }
  1561.         
  1562.         decimal OutputWidth=0, OutputHeight=0;
  1563.         
  1564.         void DisplayPaging() {
  1565.           if(DisplayImage==null) return;
  1566.           
  1567.           int d;
  1568.           if(pictureBox2.Width<pictureBox2.Height) d=pictureBox2.Width;
  1569.             else d=pictureBox2.Height;
  1570.  
  1571.           decimal w=DisplayImage.Width;
  1572.           decimal h=DisplayImage.Height;
  1573.           Bitmap B=new Bitmap(DisplayImage);
  1574.           Graphics G=Graphics.FromImage(B);
  1575.           
  1576.           decimal Pages=numericUpDown4.Value;
  1577.           
  1578.           bool AdjustWidth=true;
  1579.           if(MeasureDimensionCombo.SelectedIndex==1) AdjustWidth=false;
  1580.           
  1581.           decimal DisplayPageWidth=1, DisplayPageHeight=1, PagesX=1, PagesY=1;
  1582.           
  1583.           if(AdjustWidth) {
  1584.             DisplayPageWidth=w/Pages;
  1585.             DisplayPageHeight=PaperHeight/PaperWidth*DisplayPageWidth;
  1586.             PagesX=Pages;
  1587.             PagesY=PaperWidth/PaperHeight*PagesX*h/w;
  1588.           } else {
  1589.             DisplayPageHeight=h/Pages;
  1590.             DisplayPageWidth=PaperWidth/PaperHeight*DisplayPageHeight;
  1591.             PagesY=Pages;
  1592.             PagesX=PaperHeight/PaperWidth*PagesY*w/h;
  1593.           }
  1594.           
  1595.           Pen DarkPen=new Pen(Color.FromArgb(0x88, 0, 0, 0));
  1596.           Pen LightPen=new Pen(Color.FromArgb(0x88, 255, 255, 255));
  1597.           
  1598.           decimal p=DisplayPageWidth;
  1599.           while(p<w) {
  1600.             int x=(int)Math.Round(p);
  1601.             G.DrawLine(LightPen, x, 0, x, (int)h);
  1602.             G.DrawLine(DarkPen, x+1, 0, x+1, (int)h);
  1603.             p+=DisplayPageWidth;                         
  1604.           }
  1605.  
  1606.           p=DisplayPageHeight;
  1607.           while(p<h) {
  1608.             int y=(int)Math.Round(p);
  1609.             G.DrawLine(LightPen, 0, y, (int)w, y);
  1610.             G.DrawLine(DarkPen, 0, y+1, (int)w, y+1);
  1611.             p+=DisplayPageHeight;                         
  1612.           }
  1613.           
  1614.           G.Save();
  1615.           G.Dispose();
  1616.           
  1617.           Bitmap B2=new Bitmap(d, d);
  1618.           
  1619.       G=Graphics.FromImage(B2);
  1620.       G.FillRectangle(new SolidBrush(Color.White), 0, 0, d, d);
  1621.       
  1622.       TextureBrush TB=new TextureBrush(B, WrapMode.Clamp);
  1623.       TB.TranslateTransform((int)Math.Round((d-(decimal)w)/2), (int)Math.Round(((decimal)d-h)/2));
  1624.     
  1625.       G.FillRectangle(TB, (int)Math.Round(((decimal)d-w)/2), (int)Math.Round(((decimal)d-h)/2), (int)w, (int)h);
  1626.       G.Save();
  1627.  
  1628.       pictureBox2.Image=B2 as Image;
  1629.       
  1630.       int px=(int)Math.Ceiling((double)PagesX);
  1631.       int py=(int)Math.Ceiling((double)PagesY);
  1632.       
  1633.       string Stats="";
  1634.       
  1635.       OutputWidth=PaperWidth*PagesX;
  1636.       OutputHeight=PaperHeight*PagesY;
  1637.       
  1638.       if(OutputWidth>1000 || OutputHeight>1000) 
  1639.         Stats=Labels["OutputImageSize"]+"\n"+(OutputWidth/1000).ToString("f2")+" x "+(OutputHeight/1000).ToString("f2")+" m\n\n";
  1640.       else 
  1641.         Stats=Labels["OutputImageSize"]+"\n"+(OutputWidth/10).ToString("f1")+" x "+(OutputHeight/10).ToString("f1")+" cm\n\n";
  1642.         
  1643.       Stats+=Labels["PaperConsumption"]+"\n"+px+" x "+py+" = "+(px*py)+" "+Labels["sheet"+(px*py==1 ? "" : "s")];
  1644.       
  1645.       label11.Text=Stats;
  1646.         }
  1647.         
  1648.         void NumericUpDown4ValueChanged(object sender, System.EventArgs e)
  1649.         {
  1650.           DisplayPaging();
  1651.         }
  1652.         
  1653.         void Panel5_OptionsPaint(object sender, System.Windows.Forms.PaintEventArgs e)
  1654.         {
  1655.           
  1656.         }
  1657.         
  1658.         void Button7Click(object sender, System.EventArgs e)
  1659.         {
  1660.           if(colorDialog1.ShowDialog()!=DialogResult.OK) return;
  1661.       CustomColorRadio.Checked=true;
  1662.          CustomColorDisplay.BackColor=colorDialog1.Color;
  1663.         }
  1664.         
  1665.         void Button4Click(object sender, System.EventArgs e)
  1666.         {
  1667.           DisplayPaging();
  1668.           Panel4_OutputSize.Visible=false;
  1669.           Panel5_Options.Visible=true;
  1670.         }
  1671.         
  1672.         void Panel3_PaperSizePaint(object sender, System.Windows.Forms.PaintEventArgs e)
  1673.         {
  1674.           
  1675.         }
  1676.         
  1677.         void RadioButton2CheckedChanged(object sender, System.EventArgs e)
  1678.         {
  1679.           PaperSizeCombo.Enabled=StandardPaperRadio.Checked;
  1680.           PaperAlignCombo.Enabled=StandardPaperRadio.Checked;
  1681.           numericUpDown1.Enabled=CustomPaperRadio.Checked;
  1682.           numericUpDown2.Enabled=CustomPaperRadio.Checked;
  1683.         }
  1684.         
  1685.         void NumericUpDown4KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
  1686.         {
  1687.           DisplayPaging();
  1688.         }
  1689.         
  1690.         void Button8Click(object sender, System.EventArgs e)
  1691.         {
  1692.           if(SelectRasterbationTargetDialog.ShowDialog()!=DialogResult.OK) return;
  1693.           textBox2.Text=SelectRasterbationTargetDialog.FileName;
  1694.         }
  1695.         
  1696.         void Button6Click(object sender, System.EventArgs e)
  1697.         {
  1698.           if(numericUpDown5.Value<3M) {
  1699.             if(MessageBox.Show(Labels["SmallDotSizeWarning"].ToString(),
  1700.                                Labels["ConfirmOptions"].ToString(),
  1701.                                MessageBoxButtons.YesNo)==DialogResult.No) return;
  1702.           }
  1703.           Panel5_Options.Visible=false;
  1704.           Panel7_OutputFilename.Visible=true;
  1705.         }
  1706.         
  1707.         void LinkLabel1LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
  1708.         {
  1709.           System.Diagnostics.Process.Start("http://arje.net/rasterbator");
  1710.         }
  1711.         
  1712.         Rasterbator R;
  1713.         
  1714.         void Button9Click(object sender, System.EventArgs e)
  1715.         {
  1716.           Panel7_OutputFilename.Visible=false;
  1717.           Panel8_Rasterbating.Visible=true;
  1718.           
  1719.           NameValueCollection S=new NameValueCollection();
  1720.                     
  1721.           S["ImageWidth"]=((int)OutputWidth).ToString();
  1722.           S["ImageHeight"]=((int)OutputHeight).ToString();
  1723.           S["PaperWidth"]=PaperWidth.ToString();
  1724.           S["PaperHeight"]=PaperHeight.ToString();
  1725.           S["RasterSize"]=numericUpDown5.Value.ToString();
  1726.           S["CroppingRectangle"]=CutoutCheckbox.Checked.ToString();
  1727.           
  1728.           if(BlackRadio.Checked) S["RasterColor"]="000000";
  1729.  
  1730.           if(CustomColorRadio.Checked) {
  1731.             Color C=colorDialog1.Color;
  1732.             S["RasterColor"]=C.R.ToString("x2")+C.G.ToString("x2")+C.B.ToString("x2");
  1733.           }
  1734.           if(MultiColorRadio.Checked) S["RasterColor"]="avg";
  1735.  
  1736.           S["OriginalImageWidth"]=OriginalImage.Width.ToString();
  1737.           S["OriginalImageHeight"]=OriginalImage.Height.ToString();
  1738.           S["DisplayImageWidth"]=OriginalImage.Width.ToString();
  1739.           S["DisplayImageHeight"]=OriginalImage.Height.ToString();
  1740.           S["x1"]="0";
  1741.           S["y1"]="0";
  1742.           S["x2"]=OriginalImage.Width.ToString();
  1743.           S["y2"]=OriginalImage.Height.ToString();
  1744.           S["OriginalFilename"]=textBox1.Text;
  1745.           S["TargetFilename"]=textBox2.Text;
  1746.           S["WorkDirectory"]=textBox2.Text.Substring(0, textBox2.Text.LastIndexOf("\\")+1);
  1747.           
  1748.           R=new Rasterbator(S);
  1749.       R.Worker=new Thread(new ThreadStart(R.Go));
  1750.       R.Worker.Priority=ThreadPriority.Lowest;
  1751.       R.Worker.Start();
  1752.       
  1753.       EstimatedTimeRemainingLabel.Text="";
  1754.       StartTime=DateTime.Now;
  1755.             
  1756.           progressBar1.ForeColor=Color.FromArgb(0xff, 0x4e, 0x07, 0x07);
  1757.       timer1.Enabled=true;
  1758.         }
  1759.         
  1760.         DateTime StartTime;
  1761.         double LastProgress=-1;
  1762.         
  1763.         void Timer1Tick(object sender, System.EventArgs e) {
  1764.           double p=R.Progress;
  1765.           progressBar1.Value=(int)(p*100d);
  1766.           
  1767.           if(StartTime.AddSeconds(2)<DateTime.Now && p!=LastProgress) {
  1768.             
  1769.             double SecondsElapsed=DateTime.Now.Subtract(StartTime).TotalSeconds;
  1770.             int SecondsRemaining=(int)(SecondsElapsed/p*(1d-p));
  1771.             
  1772.             if(SecondsRemaining>0) {
  1773.               string s=Labels["EstimatedTimeRemainingLabel"].ToString();
  1774.               if(SecondsRemaining>0) {
  1775.                 int m=SecondsRemaining/60;
  1776.                 if(m>0) s+=" "+m+" "+Labels["minute"+(m==1 ? "" : "s")];
  1777.                 SecondsRemaining%=60;
  1778.               }
  1779.               s+=" "+SecondsRemaining+" "+Labels["second"+(SecondsRemaining==1 ? "" : "s")];
  1780.             
  1781.               EstimatedTimeRemainingLabel.Text=s;
  1782.             } else {
  1783.               EstimatedTimeRemainingLabel.Text="";
  1784.             }
  1785.             
  1786.             LastProgress=p;
  1787.           }
  1788.              
  1789.           if(R.Worker.ThreadState==ThreadState.Running) return;
  1790.           OriginalImage.Dispose();
  1791.           
  1792.           timer1.Enabled=false;
  1793.           if(R.ErrorMessage!="") MessageBox.Show("An error occurred while rasterbating. Please read the help files for possible solutions."+
  1794.                                                  "\n\nThe error message is:\n"+R.ErrorMessage);
  1795.           
  1796.           Panel8_Rasterbating.Visible=false;
  1797.           Panel9_Completed.Visible=true;
  1798.         }
  1799.         
  1800.         void Button10Click(object sender, System.EventArgs e)
  1801.         {
  1802.           if(OpenFileCheckbox.Checked) if(File.Exists(textBox2.Text)) System.Diagnostics.Process.Start(textBox2.Text);
  1803.           Close();
  1804.         }
  1805.         
  1806.         void LowPriorityRasterbationCheckedChanged(object sender, System.EventArgs e)
  1807.         {
  1808.           R.Worker.Priority=LowPriorityRasterbation.Checked ? ThreadPriority.BelowNormal : ThreadPriority.Normal;
  1809.         }
  1810.         
  1811.         void Button11Click(object sender, System.EventArgs e)
  1812.         {
  1813.           Panel2_SourceImage.Visible=false;
  1814.           Panel1_Welcome.Visible=true;
  1815.         }
  1816.         
  1817.         void Button12Click(object sender, System.EventArgs e)
  1818.         {
  1819.           Panel3_PaperSize.Visible=false;
  1820.           Panel2_SourceImage.Visible=true;
  1821.         }
  1822.         
  1823.         void Button13Click(object sender, System.EventArgs e)
  1824.         {
  1825.           Panel4_OutputSize.Visible=false;
  1826.           Panel3_PaperSize.Visible=true;
  1827.         }
  1828.         
  1829.         void Button14Click(object sender, System.EventArgs e)
  1830.         {
  1831.           Panel5_Options.Visible=false;
  1832.           Panel4_OutputSize.Visible=true;
  1833.           Button5Click(sender, e);
  1834.         }
  1835.         
  1836.         void Button15Click(object sender, System.EventArgs e)
  1837.         {
  1838.           Panel7_OutputFilename.Visible=false;
  1839.           Panel5_Options.Visible=true;
  1840.         }
  1841.         
  1842.         void TranslatorUrlLinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) {
  1843.           if(TranslatorUrl.Text=="") return;
  1844.           System.Diagnostics.Process.Start(TranslatorUrl.Text);
  1845.         }
  1846.         
  1847.         void MainFormResize(object sender, System.EventArgs e) {
  1848.           if(Panel4_OutputSize.Visible) Button5Click(sender, e);
  1849.         }
  1850.         
  1851.     }
  1852. }
  1853.